<script type="text/javascript" src="{$url}public/js/pay.js"></script>
{literal}
<script type="text/javascript">
    $(document).ready(function(){
        pay.init();
        pay.countMoney('{/literal}{$countOfAll}{literal}');
    });
</script>
{/literal}
<form id="form_platnosc" action="https://ssl.dotpay.pl/" method="POST"> 
    <ul>
        {if !$log}
            <li>
                <label for="imie">Numer telefonu</label>
                <input type="text" name="phone" id="phone_number" class="searchSmallInput ac_input"/>
            </li>
        {/if}
       <!-- <li>
            <label>Pakiet - </label>
            <label for="package_10">10</label>
            <input checked="checked" class="package" type="radio" value="10" id="package_10" name="package" />
            <label for="package_20">20</label>
            <input class="package" type="radio" value="20" id="package_20" name="package" />
            <label for="package_30">30</label>
            <input class="package" type="radio" value="30" id="package_30" name="package" />
            <label for="package_30">40</label>
            <input class="package" type="radio" value="40" id="package_40" name="package" />
        </li>-->
        <!--<li>
            <label for="kwota">Kwota</label>
            <input style="width:50px;border: 1px solid gray;" type="text" value="" readonly="readonly" id="kwota" name="kwota" />
            <label>zł</label>
        </li>-->
        <!--<li>
            <input checked="checked" id="paypal" class="radio" type="radio" name="platnosc" value="212" />
            PayPal
            <img src="images/pay_pal.png" alt="PayPal" />
        </li-->
        <li>
            <input class="radio" type="radio" name="platnosc" id="bankRaido" onchange="pay.changeChanel('1')" checked="checked" value="przelew_bankowy" />
            Przelew bankowy
        </li>
        <li id="bankList" style="display: block;">
            Wybierz bank
            <select name="bankwe" id="bankwe" onchange="pay.changeBank(this)">
                <option value="1">mTransfer (mBank)</option>
                <option value="2">Płacę z Inteligo</option> 
                <option value="3">MultiTransfer (MultiBank)</option>
                <option value="4">Płacę z iPKO</option>
                <option value="6">Przelew24 (BZWBK)</option>
                <option value="11">Przekaz/Przelew bankowy</option>
                <option value="13">Deutsche Bank PBC S.A.</option>
                <option value="14">Kredyt Bank S.A. (KB24)</option>
                <option value="16">Lukas Bank</option>
                <option value="17">Nordea Bank Polska</option>
                <option value="36">Pekao24 Przelew</option>
                <option value="7">ING Bank Śląski</option>
                <option value="8">SEZAM (Bank BPH S.A.)</option>
                <option value="9">Pekao24 (Bank Pekao S.A.)</option>
                <option value="10">MilleNet (Millennium Bank)</option>
                <option value="15">iPKO ( Bank PKO BP).</option>
                <option value="19">CitiBank Handlowy</option>
                <option value="36">InvestBank</option>
                <option value="26">Bank Ochrony Środowiska</option>
                <option value="27">Bank Gospodarki Żywnościowej</option>
                <option value="32">Fortis Bank S.A.</option>
                <option value="33">Volkswagen Bank Polska S.A.</option>
                <option value="42">Alior Bank</option>
                <option value="43">BS Wschowa (Bank Spółdzielczy we Wschowie)</option> 
                <option value="38">Płacę z ING Bank Śląski</option>
                <option value="44">Millennium - płatności internetowe</option>
                <option value="45">Płacę z Alior Bankiem</option>
                <option value="46">Płacę z Citi Handlowy</option>
                <option value="49">MeritumBank Przelew</option>
                
            </select>
        </li>
        
        <li>
            <input class="radio" type="radio" name="platnosc" onchange="pay.changeChanel('0')" id="cardRaido" value="karta" />
            Płatność kartą kredytową
        </li>
        
        <li>
            <input class="radio" type="radio" name="platnosc" onchange="pay.payBySms('0')" id="cardRaido" value="karta" />
            Płatność smsem
        </li>
        <li id="payBySmsFields" style="display: none;">
            <p>Wyśli sms o treści : AP.ER na numer 73456, a póżniej wpisz kod z smsa w pole poniżej</p>
            <input type="text" name="" value="" class="searchSmallInput ac_input" style="width: 286px;"/>
            <input type="button" class="buttonActionMain" value="sprawdź wpisany kod"/>
        </li>
        
        <li>
            <input type="hidden" name="channel" id="banczek" value="1" />
            <input type="hidden" name="urlc" value="{$urlc}" />
            <input type="hidden" name="url" value="{$finishedActionUrl}" />
            <input type="hidden" name="id" value="{$id}" />
            <input type="hidden" name="type" value="3" />
            <input type="hidden" name="description" value="Opłata za pakiet smsowy"/>
            <input type="hidden" name="blokuj" value="1" />
            <input type="hidden" id="dpKwota" name="kwota" value="39.99" />
            <input type="hidden" name="control" value="{$control}" />
            <input type="hidden" name="buttontext" value="{$button_text}" />
            {if $log}
                <input type="hidden" name="imie" value="{$userData.0.name}" /> 
                <input type="hidden" name="nazwisko" value="{$userData.0.surname}" /> 
                <input type="hidden" name="email" value="{$userData.0.email}" /> 
            {/if}
        </li>
    </ul>
    {if $log}
        <input class="submit" type="buttun" onclick="javascript: chceckAndSend('{$userData.0.active_sms}');" value="" id="sendToDotPay"/>
    {else}
        <input class="submit" type="buttun" onclick="pay.checkAndSendAll('{$log}')" value="" id="sendToDotPay"/>
    {/if}
</form>
